package o;

import android.graphics.drawable.Drawable;
import android.view.View;
import android.widget.Switch;
import java.lang.ref.WeakReference;

public class fog extends SkinAttr {

    static final class c extends fkz<SkinAttr, Drawable> {
        private WeakReference<Switch> ˊ;

        public /* synthetic */ void ॱ(Object obj) {
            ˊ((Drawable) obj);
        }

        private c(Switch switchR) {
            this.ˊ = new WeakReference(switchR);
        }

        public void ˊ(Drawable drawable) {
            Switch switchR = (Switch) this.ˊ.get();
            if (switchR != null) {
                fto.ˎ(switchR, drawable);
            }
        }
    }

    public fog() {
        this.ˎ = 0;
    }

    public void ˎ(View view, boolean z) {
        if (view instanceof Switch) {
            Switch switchR = (Switch) view;
            if ("drawable".equals(this.attrValueTypeName) || "color".equals(this.attrValueTypeName)) {
                this.ʽ = "drawable";
                fks.ˎ(view.getContext(), this, new c(switchR)).ॱ(z);
            }
        }
    }
}
